﻿using MediatR;
using RBAC.Api.Erroc;
using System.ComponentModel.DataAnnotations;

namespace RBAC.Api.Writh.Command.Permissions
{
    /// <summary>
    /// 修改权限
    /// </summary>
    public class UpdatePermissionCommand : IRequest<APIResult<object>>
    {
        public int Id { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        [StringLength(100)]
        public string PermissionName { get; set; }

        /// <summary>
        /// 权限URL
        /// </summary>
        [StringLength(100)]
        public string? PermissionUrl { get; set; }

        /// <summary>
        /// 权限序号
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 父级编号
        /// </summary>
        public int ParentId { get; set; }
    }
}
